package com.linghang.lhonline.repository;

import com.linghang.lhonline.dataobject.Homework;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface HomeworkRepository extends JpaRepository<Homework, Integer> {

    List<Homework> findByMissionId(Integer missionId);

    List<Homework> findByStudentId(String studentId);

    Homework findByHomeworkId(Integer homeworkId);
}
